package taxi;

import java.util.Scanner;

public class taxi {
    public static void main(String[] args) {
    System.out.println("请输入里程数:");
    Scanner input=new Scanner(System.in);
    double sum = input.nextDouble();
    double a=8;
    double b;
    if(sum<=2){
        //a=8;
        System.out.println("应付:"+a+"元");

    }
    if(sum>2){
        b=a+(sum-2)*1.5;
        System.out.println("应付:"+b+"元");

    }


    }


}
